﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 有序Guid类型
    /// </summary>
    [Description("有序Guid类型")]
    public enum SequentialGuidType
    {
        /// <summary>
        /// 将GUID当作字符串来处理的前排序
        /// <para>MySql、Sqlite、PostgreSQL中适用。</para>
        /// </summary>
        [Description("将GUID当作字符串来处理的前排序")]
        SequentialAsString = 1,

        /// <summary>
        /// 将GUID作为二进制处理的排序
        /// <para>Oracle、PostgreSQL中适用。</para>
        /// </summary>
        [Description("将GUID作为二进制处理的排序")]
        SequentialAsBinary = 2,

        /// <summary>
        /// 按GUID的最后一段来排序
        /// <para>SqlServer中适用。</para>
        /// </summary>
        [Description("按GUID的最后一段来排序")]
        SequentialAtEnd = 3,

    }
}
